package cn.demo.app.cloud;

import cn.demo.app.a.domain.User;
import cn.demo.app.api.EchoApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author: float 2022/12/4 14:18
 */

@Controller
@RequestMapping("html")
public class HtmlController {

    @Autowired
    private EchoApi echoApi;

    @RequestMapping("page")
    public String page(){
        List<User> list = echoApi.list(null);
        return "index";
    }
}
